package com.iwdnb.gkgz.ui.job;

import com.iwdnb.gkgz.application.service.StrategyTradeService;
import com.iwdnb.job.handler.BaseJobHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import static com.iwdnb.gkgz.common.utils.WorkTimeUtils.isWorkingTime;

/**
 * 策略交易任务类
 */
@Slf4j
//@Job(cron = "*/5 * 9,10,11,13,14,15,16 * * ?")
public class StockStrategyTradeJob extends BaseJobHandler {

    @Autowired
    private StrategyTradeService strategyTradeService;

    @Override
    public boolean doProcess(String parameter) {
        if (!isWorkingTime()) {
            return true;
        }
        //strategyTradeService.doStrategyTrade();
        return true;
    }

}
